/**
 * @desc 树状结构相关的接口定义
 *
 * @author yangliu at 2020-02-07
 *
 * */
declare module 'orgc-manage' {
	// 有些不确定name的type类型
	export interface NoNameType {
		[key: string]: any;
	}
	// 渲染form标签
	export interface FormDicType {
		txt: string; // 参数名字
		key: string; // 参数名
		keyName?: string; // select另外存的一个值
		type: string;// 类型
		isRequired?: boolean;// 是否是必填
		list?: any[]; // 非动态selet的list
		attrCode?: string; // type如果是字典请求
		blurLoading?: string;// 模糊搜索的loading对应名字
		blurList?: string;// 模糊搜索的list对应名字
		blurSearch?: string;// 模糊搜索的search对应名字
		radioArr?: FormDicType[];//radio数组
		disabled?: boolean;
		selectTableObj?:any;
		maxLength?:number;
		formatType?:string; // 格式化内容
	}
	export interface TreeType {
		id: string;
		isLeaf: boolean;
		code: string;
		name: string;
		nodeName: string;
		nodeType: string;
		parentId?: string;
		typeName: string;
		isRoot: boolean;
		children?: TreeType[] | null;
	}
	// 预算树的节点结构
	export interface BudgetTbList {
		adminNode: string;
		code: string;
		name: string;
		nodeType: string;
		parent: string;
		status: string;
		typeName: string;
	}
	// select 值集
	export interface SelectVals {
		text: string;
		value: string;
		id?:string;
	}
	export interface DicVals {
		[key: string]: SelectVals[]
	}
}